﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="ECO.Sample.Domain" assembly="ECO.Sample.Domain">
  <class name="Event" table="Events">
    <id name="Identity" column="ID_Event" />
    <property name="Name" />
    <property name="Description" />
    <component name="Period">
      <property name="StartDate" />
      <property name="EndDate" />
    </component>
    <bag name="Sessions" table="Sessions" inverse="true" access="nosetter.pascalcase-underscore">
      <key column="ID_Event" />
      <one-to-many class="Session" />
    </bag>
  </class>
</hibernate-mapping>
